package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.common.exception.RedpException;
import cc.rengu.redp.bizimpl.upmp.domain.UserCommonFun;
import cc.rengu.redp.bizimpl.upmp.vo.UserCommonFunVO;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author guohaocong
 */
@DS("upmp")
public interface IUserCommonFunService extends IService<UserCommonFun> {


    List<UserCommonFunVO> findCommonMenus(String instId, String userId) throws RedpException;

    @Transactional
    void deleteMenuById(String id);
}
